package com.hitqz.robot.biz.flow.config;

import cn.hutool.core.date.DateUtil;
import com.yomahub.liteflow.flow.id.RequestIdGenerator;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 自定义请求id生成器
 *
 * @author wengyx
 * @date 2023/08/23
 */
@Component
public class CustomRequestIdGenerator implements RequestIdGenerator {
    @Override
    public String generate() {
        return DateUtil.format(new Date(), "yyyyMMddHHmmssSSS");
    }
}
